import { httpDelete, httpPost, httpPut } from "@/utils/http";


export function addPermissionApi(data: object) {
    return httpPost('/permission/add', data);
}
export function getPermissionApi(data?: object) {
    return httpPost('/permission/find', data);
}
export function updatePermissionApi(data: object) {
    return httpPut('/permission/update', data);
}
export function deletePermissionApi(data: object) {
    return httpDelete('/permission/remove', data);
}